/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package libase.web.jsf;

import java.io.IOException;
import javax.faces.context.FacesContext;
import javax.inject.Named;

/**
 *
 * @author aspr0
 */
@Named
public class Redirect
{
    public void to(String addr) throws IOException
    {
        FacesContext.getCurrentInstance().getExternalContext().redirect(addr);
    }
}
